package com.example.xd.mvp_project.model.bean;

import com.example.xd.mvp_project.utils.PinYinUtils;

import net.sourceforge.pinyin4j.PinyinHelper;

import demo.Pinyin4jAppletDemo;

/**
 * @auther XuDan on 2018/10/23.
 */
public class FancBean {
    private String name;
    private String pingyin;
    private String headerWord;


    public FancBean(String name) {
        this.name = name;
        this.pingyin = PinYinUtils.getPinyin(name);
        headerWord = pingyin.substring(0, 1);
    }


    public String getName() {
        return name;
    }

    public String getPingyin() {
        return pingyin;
    }

    public String getHeaderWord() {
        return headerWord;
    }

}
